<?php
	require_once("modules/security_mod.php");
	require_once("modules/alert_mod.php");
	
	SecurityMod::login();
	
	if (!isset($_SESSION["alert_account"])) {
		print('Invalid user');
		SecurityMod::logout();
	}
	
	AlertMod::addSighting(
		new SightingAlert (
			$_SESSION["alert_account"]->getId(),
			v($_REQUEST, "ssector"),
			v($_REQUEST, "scoords"),
			v($_REQUEST, "sname")
		)
	);

?>